/**
 * 
 */
package br.ufrgs.inf.cwsmart.management;

import br.ufrgs.inf.cwsmart.core.CWSType;


/**
 * @author Rodrigo S Lumertz
 *
 */
public class CWSDeploy {

	protected byte[] cwsFile;
	protected String language;
	protected CWSType cwsType;
	protected String cwsId;
	
	public CWSDeploy(byte[] cwsFile, String language, CWSType type, String cwsId) {
						
		this.cwsFile = cwsFile;
		this.language = language;		
		this.cwsType = type;
		this.cwsId = cwsId;
	}	

	/**
	 * Gets the file that describes de CWS ala bpel for example.
	 * 
	 * @return A byte array that is the CWS file description.
	 */
	public byte[] getCWSFile() {
		return this.cwsFile;
	}
	
	/**
	 * Gets the language of this CWS instance.
	 *  
	 * @return A String with the language name of this CWS.
	 */
	public String getLanguage() {
		return this.language;
	}
	
	/**
	 * Gets the Id of this CWS.
	 * 
	 * @return A String that identifies this CWS
	 */
	public String getCWSId() {
		return this.cwsId;
	}
	
	/**
	 * Gets the type of this CWS.
	 * 
	 * @return An enumeration element
	 */
	public CWSType getCWSType() {
		return this.cwsType;
	}
}
